package Demo;

import java.util.Scanner;

public class Test {
    public static void main(String[] args){
        System.out.println("车的价格");
        Scanner scanner=new Scanner(System.in);
        double price= scanner.nextDouble();
        System.out.println("该车发生的事故");
        int number= scanner.nextInt();
        Bx bx=new Car(number,price);
        double money=bx.add();
        System.out.println("保费："+money);
    }
}
